/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bsc.ejb.entity;

import java.io.Serializable;
import javax.persistence.Entity;

/**
 *
 * @author memozac
 */
@Entity
public class Perspective extends ScoreCard implements Serializable {
    private static final long serialVersionUID = 1L;

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idScoreCard != null ? idScoreCard.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        if (!(object instanceof Perspective)) {
            return false;
        }
        Perspective other = (Perspective) object;
        if ((this.idScoreCard == null && other.idScoreCard != null) || (this.idScoreCard != null && !this.idScoreCard.equals(other.idScoreCard))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "bsc.ejb.entity.Perspective[id=" + idScoreCard + "]";
    }
    @Override
    public int compareTo(Object o) {
        return getName().compareTo(((ScoreCard)o).getName());
    }

}//ends of class
